
#pragma once

#include <ctime>

class Timer
{
public:
	Timer(bool StartNow = false);
	~Timer();

	void StartTimer();
	void PauseTimer();
	void UnpauseTimer();

	clock_t GetAbsoluteTime();
	clock_t GetTime();
	clock_t GetPauseTime();
	clock_t GetStartTime();
	clock_t GetCurrentTime();
	long GetTimeSpentPaused();
	bool IsPaused();
private:

	clock_t StartTime;
	clock_t PauseTime;

	long TimeSpentPaused;
	bool Paused;
};
